package com.test.pageObjects;

import com.test.browser.BasePage;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class IndexPage extends BasePage {
    private WebDriver driver;

    public IndexPage(WebDriver driver) {
        super(driver);
    }

    // 元素定位
    // 用户名称
    private By username =By.xpath("//div[@class='userinfo']//span[@class='btn-text']");


    // 业务逻辑和操作方法
    // username是否可见
    public boolean usernameIsDisplayed(){
        return isDisplayed(username);
    }
}
